/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

/**
 * 业务员管理菜单
 *  */
// eslint-disable-next-line import/no-extraneous-dependencies
import { Request, Response } from 'express';
import { responseSuccess } from '../utils';
import Mock from 'mockjs';

export default {
  'POST /Inn/blackListJson': (req: Request, res: Response) => {
    const data = Mock.mock({
      'data|1-30': [
        {
          id: '20',
          black_phone: '13783636923',
          blacked_by_name: '全民驿站',
          blacked_by_phone: '12345678910',
          remark: '备注',
          create_at: '2022-03-24 17:15:15',
          table_name: 'table_name',
        },
      ],
    });
    const len = data.data.length;
    return res.json({
      code: 0,
      data: {
        ...data,
        count: len,
      },
      msg: 'success',
    });
  },
  'POST /Inn/blackListAdd': (req: Request, res: Response) => responseSuccess(req, res),
  'POST /Inn/blackListDel': (req: Request, res: Response) => responseSuccess(req, res),
};
